package top.z.work.module.system.constant;

import top.z.work.framework.common.exception.ErrorCode;
import top.z.work.framework.common.exception.GlobalErrorCode;

/**
 * System错误码枚举类
 */
public interface SystemDeptErrorCode extends GlobalErrorCode {

    ErrorCode DEPT_HAS_CHILDREN     = new ErrorCode(200002, "部门下有子部门, 操作失败");
    ErrorCode DEPT_ASSIGN_TO_USER   = new ErrorCode(200001, "部门被分配给用户, 操作失败");
    ErrorCode DEPT_NAME_DUPLICATE   = new ErrorCode(200003, "已经存在名称为【{}】的角色, 操作失败");
    ErrorCode DEPT_IDENTITY_IS_NULL = new ErrorCode(200002, "部门主键为空, 操作失败");

}
